<!DOCTYPE html>
<html lang="zh-CN">

<head>
	<title>{{.article.Title}}-月盾的网站</title>
	<meta name="keywords" content="{{.article.Keywords}}">
	{{if eq .article.Description ""}}
	<meta name="description" content="{{substr .article.Content 0 200}}">
	{{else}}
	<meta name="description" content="{{.article.Description}}">
	{{end}}
	{{template "./layout-head.html" .}}
	<link rel="stylesheet" href="/static/css/markdown.css" />
</head>

<body>

	<div class="layui-layout layui-layout-admin">
		<!-- 顶部栏 -->
		{{template "./layout-menu.html"}}
		<!-- 顶部栏 -->
		<!-- 中间内容区 -->
		<section class="article-page width-visual">
			<div class="layui-container page-container">
				<article>
					<header class="title-header">
						<h1>{{.article.Title}}</h1>
						<ul class="article-info">
							<li><time>时间：{{.article.UpdatedAt}}</time></li>
							<li>分类：<a href="/categories/{{.article.Category}}">{{.article.Category}}</a></li>
							<li>浏览：{{.article.ViewCount}}</li>
						</ul>
					</header>
					<div class="description markdown">
						{{str2html .article.Content}}
					</div>
				</article>
				<hr>
				<div class="layui-row">
					<div class="layui-col-md6">{{if gt .article.Previous.Id .zero}}<i
							class="layui-icon layui-icon-left"></i><a
							href="/article/{{.article.Previous.Id}}">{{.article.Previous.Title}}</a>{{end}}</div>
					<div class="layui-col-md6" style="text-align: right;">{{if gt .article.Next.Id .zero}}<a
							href="/article/{{.article.Next.Id}}">{{.article.Next.Title}}</a><i
							class="layui-icon layui-icon-right"></i>{{end}}</div>
				</div>
			</div>
		</section>
		{{template "./layout-footer.html"}}
	</div>
</body>

</html>